home *** CD-ROM | disk | FTP | other *** search
- Path: news.unt.edu!news
- From: Steve Fogoros <sfogoros@hsc.unt.edu>
- Newsgroups: comp.lang.c
- Subject: Re: A Simple Question From A Beginner (Please Help)
- Date: Sun, 17 Mar 1996 11:44:51 -0800
- Organization: University of North Texas Health Science Center
- Message-ID: <314C6BB3.5955@hsc.unt.edu>
- References: <4i26gm$6th@news.bellglobal.com>
- NNTP-Posting-Host: sfogoros.hsc.unt.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- David Lowe wrote:
- >
- > This should be a simple thing to execute but for some reason I can not
- > get it to work.
- >
- > What I would like to do is execute something like a SHELL command.
- > What I would like to do in C or C++ is the equivelent to typing the
- > following at the Win NT command line:
- >
- > sendmail dlowe@pathcom.com < mail.txt
- >
- > I have tried the following code:
- >
- > _spawnl( _P_WAIT, "sendmail.exe", "dlowe@pathcom.com < mail.txt",
- > NULL); ^
- Should you be prefixing underscores on the function call?
-
- --
- Steve Fogoros, Academic Information Coordinator
- University of North Texas Health Science Center
- sfogoros@hsc.unt.edu
-